package com.openscorer;

public class Bool extends Scorable {
	public Bool(String name, FormattingOptions foptions) {
		name_ = name;
		foptions_ = foptions;
	}
	public boolean bool() { return value_; }
	
	// The following are for internal use only.
	public FormattingOptions getFOptions() { return foptions_; }
	public String getName() { return name_; }
	public void visit(ScorableVisitor v) {
		v.visitBool(this);
	}
	public Bool deepCopy() { return new Bool(name_, foptions_); }
	
	FormattingOptions foptions_;
	private String name_;
	private boolean value_;
}
